<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../static/jquery-easyui-1.5.5.3/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="../static/jquery-easyui-1.5.5.3/themes/bootstrap/easyui.css"/>
<link rel="stylesheet" type="text/css" href="../static/jquery-easyui-1.5.5.3/themes/icon.css"/>
<script type="text/javascript" src="../static/jquery-easyui-1.5.5.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../static/jquery-easyui-1.5.5.3/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
	$(function(){
		$("#t_user").datagrid({
			idField: 'id',
			title: '授权列表',
			fitColumns: true,
			width: '100%',
			striped: true,
			loadMsg: '数据正在加载...',
			rownumbers: true,
			url: 'list1',
			columns: [
				[
					{
						field: 'id',
						title: 'id',
						width: 100,
						align: 'center'
					},{
						field: 'beginDate',
						title: '开始日期',
						width: 100,
						align: 'center'
					},{
						field: 'month',
						title: '使用期限（月）',
						width: 100,
						align: 'center'
					},{
						field: 'endDate',
						title: '结束日期',
						width: 100,
						align: 'center'
					},{
						field: 'lessee',
						title: '租户名称',
						width: 100,
						align: 'center',
						formatter: function(value){   
							return value.name;
						}
					},{
						field: 'cost',
						title: '缴纳费用',
						width: 100,
						align: 'center'
					}
				]
			],
			pagination: true,
			pageSize: 10,
			pageList: [3, 5, 10, 20]
		});
	});
</script>
</head>
<body>
	<table id="t_user"></table>
</body>
</html>